package com.cljz.peipei.model.net.api;


import com.cljz.peipei.base.Constant;

import cn.droidlover.xdroidmvp.net.XApi;

/**
 *
 */

public class Api {

    private static ResponseInfoAPI responseInfoAPI;

    public static ResponseInfoAPI getResponseInfoAPI() {
        if (responseInfoAPI == null) {
            synchronized (Api.class) {
                if (responseInfoAPI == null) {
                    responseInfoAPI = XApi.getInstance().getRetrofit(Constant.BASE_URL, true).create(ResponseInfoAPI.class);
                }
            }
        }
        return responseInfoAPI;
    }
}
